package com.ygqh.baby.service.wechat.model;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

public class UserActionSet {
	
	@JSONField(name = "user_action_set_id")
	private String userActionSetId; // 用户行为源id

	@JSONField(name = "type")
	private Type type; // 用户行为源类型，WEB

	@JSONField(name = "name")
	private String name; // 用户行为缘名称

	@JSONField(name = "description")
	private String description; // 用户行为源描述

	@JSONField(name = "activate_status")
	private Boolean activateStatus; // 数据接入状态，true 表示已接入，false 表示未接入

	@JSONField(name = "created_time")
	private Date createdTime; // 创建时间

	public UserActionSet() {
		super();
	}

	public UserActionSet(Type type, String name, String description) {
		super();
		this.type = type;
		this.name = name;
		this.description = description;
	}

	public String getUserActionSetId() {
		return userActionSetId;
	}

	public void setUserActionSetId(String userActionSetId) {
		this.userActionSetId = userActionSetId;
	}

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Boolean getActivateStatus() {
		return activateStatus;
	}

	public void setActivateStatus(Boolean activateStatus) {
		this.activateStatus = activateStatus;
	}

	public Date getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	@Override
	public String toString() {
		return "UserActionSet [userActionSetId=" + userActionSetId + ", type=" + type + ", name=" + name + ", description=" + description + ", activateStatus="
				+ activateStatus + ", createdTime=" + createdTime + "]";
	}

	/**
	 * 用户行为源类型
	 * @author Ss
	 *
	 */
	public static enum Type {
		
		WEB(0, "页面");
	
		/** 状态码 */
		private Integer code;
		/** 状态名称 */
		private String title;
	
		Type(Integer code, String title) {
			this.code = code;
			this.title = title;
		}
	
		public Integer getCode() {
			return code;
		}
	
		public void setCode(Integer code) {
			this.code = code;
		}
	
		public String getTitle() {
			return title;
		}
	
		public void setTitle(String title) {
			this.title = title;
		}
		
	}

}
